<%@ Reference Control="~/Controls/Member.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.view_member_photos" CodeFile="view_member_photos.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register TagPrefix="Member" TagName="Member" Src="Controls/Member.ascx" %>

<form id="uploadImageForm" action="" method="post" runat="server">
	<table height="100%" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
		<tr runat=server id="trUserShortCut">
			<td  align="center">
				<member:member runat="server" id="ucMemberShortcut"/>
			</td>
		</tr>
		<tr>
			<td class="page_title"><asp:label id="lblPhotosAlbum" runat="server">Photos in Album</asp:label></td>
		</tr>
		<tr>
			<td height="100%" class="main_table_border">
				<div class="content">
					<asp:label id="lblNoImage" runat="server">There are no photos currently available.</asp:label>
					<asp:datalist id="dlPictures" runat="server" CssClass="data_list" Width="100%" RepeatColumns="2"
					HorizontalAlign="Left" CellPadding="0" BorderWidth="0px" ShowHeader="False" ShowFooter="False" RepeatDirection="Horizontal">
						<itemstyle horizontalalign="Left" verticalalign="Top"></ItemStyle>
						<itemtemplate>
							<table cellspacing=0 cellpadding=0 border=0 class="main_text">
								<tr>
									<td style="PADDING-TOP: 5px" class="col_image" valign="top" width="73" rowspan="2">
										<asp:imagebutton id=imgPhoto runat="server" CssClass="small_image" CausesValidation="False" CommandName="ViewLargerPhotoLink" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImageURL") %>' CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ImageID") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "UserName") %>'></asp:imagebutton><br>
									</td>
								</tr>
								<tr>
									<td valign=top style="PADDING-TOP: 8px">
									<asp:LinkButton id=lbViewLargerPhoto runat="server" CssClass="main_text_bold" CommandName="ViewLargerPhotoLink" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ImageID") %>'>View larger photo and comments</asp:LinkButton>
									<br>
									<asp:LinkButton id=lbPostComment runat="server" CssClass="main_text_bold" CommandName="PostComment" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ImageID") %>'>Post a comment</asp:LinkButton>
									<br>
									<asp:Label id=lblCommentsCount runat="server" CssClass="main_text_bold"><%# DataBinder.Eval(Container.DataItem, "Comments") %></asp:Label></td>
								</tr>
								<tr>
									<td colspan="2">
										<asp:Label id=lblDescription runat="server">
											<%# DataBinder.Eval(Container.DataItem, "Description") %>
										</asp:Label><br>
									</td>
								</tr>
							</table>
						</ItemTemplate>
					</asp:datalist>
				</div>					
			</td>
		</tr>
	</table>
</form>
